package mavenProject.Model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name = "results")
public class UserResult {
	@Id
	@Column(name = "id_user")
	private int idUser;

	@Column(name = "user")
	private String user;	//what is it?

	@Column(name = "right_answers")
	private int rightAnswers;

	public UserResult(int idUser, String user, int rightAnswers) {
		this.idUser = idUser;
		this.user = user;
		this.rightAnswers = rightAnswers;
	}

	public UserResult() {

	}

	public int getIdUser() {
		return idUser;
	}

	public void setIdUser(int idUser) {
		this.idUser = idUser;
	}

	public String getUser() {
		return user;
	}

	public void setUser(String user) {
		this.user = user;
	}

	public int getRightAnswers() {
		return rightAnswers;
	}

	public void setRightAnswers(int rightAnswers) {
		this.rightAnswers = rightAnswers;
	}

}
